<?php

namespace app\model\school;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 心理学堂-课程
 */
class SchoolCourseModel extends BaseModel
{
    protected $name = 'school_course';

    /**
     * 章节
     * @return HasMany
     */
    public function chapter(): HasMany
    {
        return $this->hasMany(SchoolCourseChapterModel::class, 'course_id');
    }
}